package cn.edu.nyist.integration.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品积分
 */
public class ProductCredit implements Serializable {

    private Integer productId;
    private String productName;
    //单个商品积分
    private Integer productScore;


    private Date createTime;
    private Date updateTime;

    private Category category;

    public ProductCredit() {
    }

    public ProductCredit(Integer productId, String productName,
                         Integer productScore,
                       Date createTime,
                         Date updateTime, Category category) {
        this.productId = productId;
        this.productName = productName;
        this.productScore = productScore;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.category = category;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "ProductCredit{" +
                "productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productScore=" + productScore +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", category=" + category +
                '}';
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductScore() {
        return productScore;
    }

    public void setProductScore(Integer productScore) {
        this.productScore = productScore;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
